# I2C MUX驱动测试构建文件

test_i2c_mux_sources = [
  '../../../main.cpp',
  'test_i2c_mux.cpp',
  '../../../../drivers/bus/i2c_mux/i2c_mux.cpp',
  '../../../../drivers/bus/i2c_mux/interface/i_i2c_mux.cpp',
]

test_i2c_mux = executable(
  'test_i2c_mux',
  test_i2c_mux_sources,
  include_directories: [
    include_directories('.'),
    include_directories('../../../..'),
    include_directories('../../../../drivers/bus/i2c_mux'),
    include_directories('../../../../drivers/bus/i2c'),
    include_directories('../../../../drivers/internal'),
    include_directories('../../../../include'),
    include_directories('../../../../gen'),
  ],
  dependencies: [
    gtest_dep,
    test_utilities_dep,
    libmcpp_deps,
    internal_dep,
    test_utils_dep,
    i2c_mux_dep,
    i2c_dep,
  ],
  cpp_args: ['-DUNIT_TEST'],
  install: false,
)

test('test_i2c_mux', test_i2c_mux, timeout: 300, suite: 'i2c_mux')

